import * as types from './mutations_types'
import auth from '@/api/auth'

export default {
  login: async ({ commit }) => {
    let _user = {
      userName: 'admin',
      password: 'admin'
    }
    let token = await auth.login(_user)
    commit(types.UPDATE_TOKEN_LOCAL, token)
  }
}
